home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2782 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: arlut.utexas.edu!usenet
  2. From: Lee Crites <crites>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: How can I create a linked list using classes?
  5. Date: 19 Jan 1996 18:08:30 GMT
  6. Organization: Applied Research Laboratories - The University of Texas at Austin
  7. Message-ID: <4dommu$gti@ns1.arlut.utexas.edu>
  8. References: <30FA80CF.E66@fox.nstn.ca> <4dn4nj$2en@condor.ic.net>
  9. NNTP-Posting-Host: squid.arlut.utexas.edu
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.01 9000/730)
  14. X-URL: news:4dn4nj$2en@condor.ic.net
  15.  
  16. I'd say that the fastest thing to do would be to use the list<T> from the STL.
  17. It's already written, works basically as fast as anything that most people
  18. might toss together, and it is generic enough that you can use it for just
  19. about anything you'd need.
  20.  
  21. I'm in the process of learning the STL, and it is, imo, a tremendous deal!  I'm
  22. running a test program at this moment that is comparing the STL deque and
  23. vector against hand-coded routines.  The results are so close that I'm most
  24. likely not going to be hand-coding arrays, queues, or lists ever again.
  25.  
  26. Lee
  27.  
  28.